import request from 'utils/request'


export const productDetail = params => request.post("/prod/detail", params);  //获取商品详情

export const jdProductDetail = id => request.get(`/p/jdOnline/${id}`);  //获取商品详情

export const isExistsFavorite = params => request.post("/isExistsFavorite", params);  //是否已收藏商品

export const productComments = params => request.post("/productComments", params);  //获取商品评论

export const productCommentNumbers = params => request.post("/productCommentNumbers/" + params);  //获取商品评论数量


export const commentReplyList = params => request.post("/commentReplyList", params);  //获取评论的回复列表


export const prodCommentDetail = params => request.post("/prodCommentDetail", params);  //获取评论详情


export const replyComment = params => request.post("/p/replyComment", params);  //回复评价（评论）


export const replyParent = params => request.post("/p/replyParent", params);  //回复别人的回复


export const updateUsefulCounts = params => request.post("/p/updateUsefulCounts", params);  //给评论点赞


export const getProdParams = params => request.get("/getProdParams/" + params.prodId);  //给评论点赞

export const isSupportStore = params => request.post("/isSupportStore", params);  //是否支持门店自提


//分享回调
export const distribution = params => request.post("/p/prod/distribution", params);

// 检查是否能下单
export const checkOrderParams = params => request.post("/p/checkOrderParams", params);

// 检查京东商品价格是否改变
export const jdCheckPrice = (params) => request.get('/prod/jdCheckPrice', params)

// 校验京东库存
export const jdCheckStock = (params) => request.get('/prod/jdCheckStock', params)
